package com.zzl.gulimall.product.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zzl.common.utils.PageUtils;
import com.zzl.gulimall.product.entity.AttrGroupEntity;
import com.zzl.gulimall.product.vo.AttrRelationVo;

import java.util.List;
import java.util.Map;

/**
 *
 * @author zzl
 * @email zhuangzhongliang@163.com
 * @date 2021-03-10 14:06:58
 */
public interface AttrGroupService extends IService<AttrGroupEntity> {

    PageUtils queryPage(Map<String, Object> params);

    /**
     * 条件分页查询分组信息
     * @param params
     * @param catelogId
     * @return
     */
    PageUtils queryPageByCatelogId(Map<String, Object> params, Integer catelogId);



    PageUtils getAttrRelationList(Map<String, Object> params, Long attrgroupId, String type);


    void saveAttrRelation(List<AttrRelationVo> attrRelationVoList);

    void removeAttrRelation(List<AttrRelationVo> attrRelationVoList);
}

